Resolve wget login failures by manually extracting CSRF tokens and submitting POST requests with session cookies.